<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单设置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-orderSetting-edit" th:object="${omsOrderSetting}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">秒杀订单超时关闭时间(分)：</label>
                <div class="col-sm-8">
                    <input name="flashOrderOvertime" th:field="*{flashOrderOvertime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正常订单超时时间(分)：</label>
                <div class="col-sm-8">
                    <input name="normalOrderOvertime" th:field="*{normalOrderOvertime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发货后自动确认收货时间：</label>
                <div class="col-sm-8">
                    <input name="confirmOvertime" th:field="*{confirmOvertime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">自动完成交易时间，不能申请售后：</label>
                <div class="col-sm-8">
                    <input name="finishOvertime" th:field="*{finishOvertime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单完成后自动好评时间：</label>
                <div class="col-sm-8">
                    <input name="commentOvertime" th:field="*{commentOvertime}" class="form-control" type="text">
                </div>
            </div>
            <!--<div class="form-group">    -->
                <!--<label class="col-sm-3 control-label">所属店铺：</label>-->
                <!--<div class="col-sm-8">-->
                    <!--<input name="storeId" th:field="*{storeId}" class="form-control" type="text">-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">每天提醒发货次数：</label>
                <div class="col-sm-8">
                    <input name="remindShipCount" th:field="*{remindShipCount}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "mall/orderSetting";
        $("#form-orderSetting-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-orderSetting-edit').serialize());
            }
        }
    </script>
</body>
</html>